package cn.selfiot.iotman.core;

import javafx.fxml.Initializable;
import javafx.stage.Stage;

import java.net.URL;
import java.util.ResourceBundle;

/**
 * @author hugo
 * @since 2020/8/10
 */
public abstract class StageController implements Initializable {
    private StageParams params;
    private Stage stage;
    
    public StageParams getParams() {
        return params;
    }
    
    public void setParams(StageParams params) {
        this.params = params;
    }
    
    public Stage getStage() {
        return stage;
    }
    
    public void setStage(Stage stage) {
        this.stage = stage;
    }
    
    public abstract void callback();
    
    @Override
    public abstract void initialize(URL location, ResourceBundle resources);
}
